package com.example.neo4j.bean;

import org.springframework.data.neo4j.core.schema.*;

@RelationshipProperties
public class PersonRelation {

    @RelationshipId
    private Long id;
    @Property(name = "type")
    private String type;
    @TargetNode
    private Person startNode;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Person getStartNode() {
        return startNode;
    }

    public void setStartNode(Person startNode) {
        this.startNode = startNode;
    }

}
